package com.abbas.abchat.utils;

/**
 * @author abbas
 * @description: TODO
 * @date 2022/4/12 21:29
 */

public class TextLengthUtils {

    /**
     *account&password length limit
     */
    public static int APMinLength = 6;

    public static int APMaxLength = 12;

    /**
     * to judge a string length is over to target len
     * @param target string
     * @param len length
     * @return is over to len
     */
    public static boolean isOverTo(String target,int len){
        if (target.length() >= len) return true;
        return false;
    }

    public static boolean isLessOf(String target,int len){
        if (target.length() > len) return true;
        return false;
    }

}
